from osc04a.domain.activities.StandardFloorErection import StandardFloorErection
from osc04a.static.constants import Constants

onsite_activities = []
for i in range(2):
    print(i)
    first_floor_no = 100;

    standard_floor_erection = StandardFloorErection(
        name=('FL' + str(i + first_floor_no).zfill(len(str(first_floor_no)))),
        duration_likely=Constants.STANDARD_FLOOR_ERECTION_MODE + 1,
        duration_low=Constants.STANDARD_FLOOR_ERECTION_LEFT + 1,
        duration_high=Constants.STANDARD_FLOOR_ERECTION_RIGHT + 1,
        worker_skill='1', worker_num=5,
        crane_type='1'
    )
    standard_floor_erection.duration = \
        round((
                      standard_floor_erection.duration_low + 4 * standard_floor_erection.duration_likely
                      + standard_floor_erection.duration_high) / 6,
              2)
    onsite_activities.append(standard_floor_erection)

first_floor_no = 117;

standard_floor_erection = StandardFloorErection(name=('FL' + str(first_floor_no).zfill(len(str(first_floor_no)))),
                                                duration_likely=Constants.STANDARD_FLOOR_ERECTION_MODE + 1,
                                                duration_low=Constants.STANDARD_FLOOR_ERECTION_LEFT + 1,
                                                duration_high=Constants.STANDARD_FLOOR_ERECTION_RIGHT + 1,
                                                worker_skill='1', worker_num=5,
                                                crane_type='1'
                                                )
standard_floor_erection.duration = \
    round((
                  standard_floor_erection.duration_low + 4 * standard_floor_erection.duration_likely
                  + standard_floor_erection.duration_high) / 6,
          2)
onsite_activities.append(standard_floor_erection)
